<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> 
	
    <script type="text/javascript" src="jquery.min.js"></script>
    <script type="text/javascript" src="jquery.timer.js"></script>
	
	<script type="text/javascript">	
		var count = 0;
		var timer = $.timer(
			function() {
				count++;
				//console.log('AA');

				$.ajax({
				   type: "POST",
				   url: "logout_state.php",
				   data: "name=John&location=Boston",
				   success: function(msg){
					 // alert( "Data Saved: " + msg );
				   }
				});
			},
			1000,
			true
		);	
	</script>
	
</body>
</html>